package org.samoji.GUI;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

@SuppressWarnings("serial")
public class MainWindow extends JFrame{
	JTabbedPane tabbedPane;
	JPanel tabBook;
	JPanel tabAuthor;
	JPanel tabLibrary;
	
	JButton btnInsert;
	JButton btnModify;
	JButton btnDelete;
	JButton btnView;
	
	public MainWindow() {
		setTitle("Main Window");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setResizable(false);
		
		tabbedPane = new JTabbedPane();
		
		tabBook = new JPanel();
		tabAuthor = new JPanel();
		tabLibrary = new JPanel();

		tabbedPane.addTab("Book", new SMJTab("LIBRO"));
		tabbedPane.addTab("Author", new SMJTab("AUTORE"));
		tabbedPane.addTab("Library", new SMJTab("LIBRERIA"));

		getContentPane().add(tabbedPane);

		pack();
	}	
}